package com.couldtest.providerA.service;

import com.couldtest.providerA.mapper.UserMapper;
import com.couldtest.providerA.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by liguanfu on 2018/7/10.
 */

@Service("userService")
public class UserService {

    @Resource
    private UserMapper userMapper;

    /**
     * 获取用户列表
     *
     * @return
     * @throws Exception
     */
    public User getUser(Long id) {
        User user = userMapper.selectByPrimaryKey(id);
        return user;
    }

}
